package com.averroes
{
	import flexunit.framework.TestCase;
	import com.adobe.utils.ArrayUtil;
	
	public class ArrayUtilsTest extends TestCase
	{
		public var arr:Array = [3,4,5,3,2,4,5,1,1,1,2,2,12,12,12];
		public function ArrayUtilsTest(methodName:String = null)
		{
			super(methodName);
		}
		
		public function test_array_unique():void
		{
			var unique:Array = ArrayUtils.array_unique(arr);
			var output:Array = [1,2,3,4,5,12];
				output.sort(Array.NUMERIC);
			assertTrue("ArrayUtils.array_unique(arr)", ArrayUtil.arraysAreEqual(arr, output));
		}
	}
}